package cn.aohan.common.dto;

/**
 * 结果代码枚举
 *
 * @author 傲寒
 * @since 2024/03/20
 */
public enum ResultCodeEnum {

    /**
     * 请求成功
     */
    SUCCESS("SUCCESS", "请求成功"),

    /**
     * 系统执行异常
     */
    ERROR("ERROR", "系统内部错误"),

    ;

    private final String code;

    private final String msg;

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ResultCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
